package com.gowow.gowoworionapp.ui.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter

class NavViewpageAdapter(
    fm: FragmentManager,
    lifecycle: Lifecycle,
    private val list: MutableList<Fragment>
) :
    FragmentStateAdapter(fm, lifecycle) {
    override fun getItemCount(): Int {

        return list.size
    }

    override fun createFragment(position: Int): Fragment {

        return list[position]
    }
}






